/* 全局样式 */
body {
    display: flex;
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
}

/* 容器样式 */
.container {
    display: flex;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px;
}

/* 编辑器样式 */
.editor {
    flex: 1;
    padding: 20px;
    border-right: 1px solid #e0e0e0;
}

.editor textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.6;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    outline: none;
}

/* 预览样式 */
.preview {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 预览内容样式 */
.preview h1,
.preview h2,
.preview h3,
.preview h4,
.preview h5,
.preview h6 {
    color: #333;
}

.preview p {
    color: #666;
    line-height: 1.6;
}

.preview a {
    color: #007BFF;
    text-decoration: none;
}

.preview a:hover {
    text-decoration: underline;
}

.preview code {
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.preview pre {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

.preview blockquote {
    border-left: 4px solid #007BFF;
    margin: 0;
    padding: 0 10px;
    color: #666;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

/* 按钮样式 */
#copy-button,
#save-button {
    background-color: #007BFF;
    color: white;
    border: none;
    /* 增加内边距以扩大可点击区域 */
    padding: 15px 30px; 
    border-radius: 4px;
    cursor: pointer;
    /* 增加按钮之间的间隔 */
    margin: 0 20px; 
    transition: background-color 0.3s ease;
}

#copy-button:hover,
#save-button:hover {
    background-color: #0056b3;
}

#copy-button:active,
#save-button:active {
    background-color: #004085;
}